package com.deep.product.model.vo;

import com.deep.product.model.dto.SeckillSkuDTO;
import com.deep.product.model.entity.SkuImagesEntity;
import com.deep.product.model.entity.SkuInfoEntity;
import com.deep.product.model.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

/**
 * 商品详情
 *
 * @author Deep
 * @date 2022/2/2
 */
@Data
public class SkuItemVO {
    //1、sku基本信息的获取  pms_sku_info
    private SkuInfoEntity info;

    private boolean hasStock = true;

    //2、sku的图片信息    pms_sku_images
    private List<SkuImagesEntity> images;

    //3、获取spu的销售属性组合【一个vo是一个销售属性】
    private List<SkuItemSaleAttrVO> saleAttr;

    //4、获取spu的介绍
    private SpuInfoDescEntity desc;

    //5、获取spu的规格参数信息【以组为单位】
    private List<SpuItemAttrGroupVO> groupAttrs;

    //6、秒杀信息
    private SeckillSkuDTO seckillSkuDTO;

}
